#import <Foundation/Foundation.h>
#import "Mail.h"

@interface URLLoadingOperation : NSOperation {
//This function handles web operations running in the background or which are important like send mail, delete mail.
	NSArray* mailArray; 
	NSString* mailBox;
	NSURL* targetURL;
	NSData* postData;
	int operationType;
	NSString* transactionDescription;
}


- (id)initWithMailArray:(NSArray*)newArray mailBox:(NSString*)mailBox;
- (id)initWithType:(int)type URL:(NSURL*)URL data:(NSData*)data description:(NSString*)description fromDatabase:(BOOL)isDatabase;
- (id)initWithType:(int)type;
@end
